//
//  SbwjlbCell.swift
//  Auscultation
//
//  Created by 来 on 2020/12/11.
//

import Foundation

class SbwjlbCell: UICollectionViewCell {
    
    var image_view1: UIImageView!
    var name: UILabel!
    var image_view2: UIImageView!
    
    override init(frame: CGRect) {
        super.init(frame: frame)
        
        self.backgroundColor = UIColor.white
        
        image_view1 = UIImageView.init(image: #imageLiteral(resourceName: "wenjianjiaguanbi"))
        addSubview(image_view1)
        image_view1.snp.makeConstraints { (make) in
            make.centerY.equalToSuperview()
            make.left.equalToSuperview().offset(17)
            make.width.equalTo(35)
            make.height.equalTo(30)
        }
        
        name = UILabel.init()
        name.text = "文件名字"
        name.lgf_AddShowAllText()
        name.font = UIFont.systemFont(ofSize: 16)
        name.textColor = UIColor.init(lgf_HexString: "222222")
        addSubview(name)
        name.snp.makeConstraints { (make) in
            make.centerY.equalToSuperview()
            make.left.equalTo(image_view1.snp.right).offset(10)
        }
        
        image_view2 = UIImageView.init(image: #imageLiteral(resourceName: "xiazai-shi-2"))
        addSubview(image_view2)
        image_view2.snp.makeConstraints { (make) in
            make.centerY.equalToSuperview()
            make.right.equalToSuperview().offset(-17)
            make.width.equalTo(20)
            make.height.equalTo(20)
        }
        
        let line3 = UIView.init()
        line3.backgroundColor = UIColor.init(lgf_HexString: "F1F2F4")
        addSubview(line3)
        line3.snp.makeConstraints { (make) in
            make.centerX.bottom.equalToSuperview()
            make.width.equalToSuperview().offset(-34)
            make.height.equalTo(1)
        }
        
    }
    
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
}
